import { WeaTools } from 'ecCom';

// 获取 tab
export const getTabInfo = params => WeaTools.callApi('/api/doc/searchlist/tabInfo', 'GET', params);

// 添加 tab
export const addTabPane = params => WeaTools.callApi('/api/doc/searchlist/saveConditionMould', 'GET', params);

// 删除 tab
export const delTabPane = params => WeaTools.callApi('/api/doc/searchlist/deleteConditionMould', 'GET', params);

// 获取删除文档提示信息
export const doDeleteWarm = params => WeaTools.callApi('/api/doc/operate/deleteWarm', 'GET', params);

// 删除文档操作
export const doDelete = params => WeaTools.callApi('/api/doc/operate/delete', 'GET', params);

// 获取导入虚拟目录配置
export const chooseDummy = params => WeaTools.callApi('/api/doc/dummydoc/chooseDummy', 'GET', params);

// 导入虚拟目录
export const importDummy = params => WeaTools.callApi('/api/doc/operate/import2Dummy', 'GET', params);

// 标记为已读
export const markReaded = params => WeaTools.callApi('/api/doc/operate/markReaded', 'GET', params);

// 获取知识中心-->查阅文档-->左侧树，默认的展示目录
export const getDefaultTree = params => WeaTools.callApi('/api/doc/searchlist/defaultTreeNode', 'GET', params);

// 获取知识中心-->查阅文档-->新建文档的跳转链接
export const createUrl = params => WeaTools.callApi('/api/doc/searchlist/createUrl', 'GET', params);
// 获取知识中心-->查阅文档-->新建文档的目录浏览按钮
export const createDocCategoryBrowser = params => WeaTools.callApi('/api/doc/searchlist/createDocCategoryBrowser', 'GET', params);

// 点击编辑的时候，判断是否有人检出文件
export const docfileisCheckOut = params => WeaTools.callApi('/api/doc/save/isCheckOut', 'GET', params);
// 判断目录的新建权限
export const getAccount = params => WeaTools.callApi('/api/doc/category/getAccount', 'GET', params);

